<?php 
class Test extends CI_Controller {

	/**
	 * 测试数据库是否可用

	 */
	public function index()
	{
		$tables = $this->db->list_tables();
		$data=array('tables'=>array());
		foreach ($tables as $table){
			$data['tables'][] = array("table_name"=>$table);
		}
		
		$this->parser->parse('show_table', $data);
		//$output = shell_exec('');
		//echo "<pre>$output</pre>";
		
	}
}

/* End of file index.php */
/* Location: ./application/controllers/index.php */